﻿using System.Runtime.Serialization;
using Common.ServiceResponse;

namespace Common.Entities
{
    [DataContract]
    public class User
    {
        [DataMember]
        public string UserName { get; private set; }
        [DataMember]
        public string Password { get; private set; }
        [DataMember]
        public UserAccounts UserAccounts { get; private set; }
        [DataMember]
        public Sessions History { get; private set; }
        [DataMember]
        public Preferences Preferences { get; private set; }
        [DataMember]
        public SecurityKey SecurityKey { get; private set; }
        [DataMember]
        public ResponseDetails ResponseDetails { get; private set; }

        public User(string userName, string password, UserAccounts userAccounts, Sessions history, Preferences preferences, SecurityKey securityKey, ResponseDetails responseDetails)
        {
            UserName = userName;
            Password = password;
            UserAccounts = userAccounts;
            History = history;
            Preferences = preferences;
            SecurityKey = securityKey;
            ResponseDetails = responseDetails;
        }
    }
}
